<template>
  <div class="header">
    <div class="header-content">
      <div class="hospital-icon">
        <i class="fas fa-hospital-alt"></i>
      </div>
      <div class="header-text">
        <h1>医院挂号预约系统</h1>
        <p>请填写以下信息完成挂号预约</p>
      </div>
      <div class="header-actions">
        <button class="btn-management" @click="goToManagement">
          <i class="fas fa-clipboard-list"></i>
          我的预约
        </button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goToManagement = () => {
  router.push('/reservation/Management')
}
</script>

<style scoped>
.header {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
}

.hospital-icon {
  font-size: 42px;
  margin-right: 20px;
}

.header-text h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-text p {
  font-size: 20px;
  margin: 0;
  opacity: 0.9;
}

.btn-management {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 600;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-left: 400px;
}

.btn-management:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-management i {
  margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .hospital-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .btn-management {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }
}
</style>